implement basic methods in controller