Don't run callback functions if navigation bar buttons are pressed