Added navbar helper functions.