started to implement controller