This function allows you to dismiss story view.
Dismiss animation can be customized using this parameter