cleaned main routes file, separated to backend and frontend