Makes cancel button dismiss the view controller