Fix backend integration
Move controllers into separate files