Base code for the front controllers