Added a fix to the function that dismiss the view controller