misc updates, mvc style, checks for login status