front controller functions