Fix config
Add views and security