creating the front controller