if current view controller is navigation controller and selected again, pop