added logout and dynamic menu structure based on userlvl