Add .env and fix controllers