attempt at a front controller