fix minor bugs with navbar buttons