front end & pages controller