check whether navbar title was changed before resetting