include these methods in the controller. copypasta.