fixed incorrect dismissal of settings vc