A default controller with some helpful functions