Adding custom popViewController method