more controller and erb logic