added Views; test code for authorization;