added the function to control the active item in the footer menu