Front Controller Code