front controller class