refactored controllers: moved to separated files. include only needed for frontend and dashboard