dynamic menu in login activity depending on active fragment
checking for network connection in login activity and main list