added menu control and login status