Added the function to change the active nav-button