Split front end and backend code