Update controller.php

Makes it easier to duplicate this block.