sample controller and view