making more changes for menu system and for checking if the user who has logged in has the right privilege to be on this page