fixing auth and directive
fix anonymous main page