added 'active' function for the menu