update button and title navbar behavior