Sample controller and view