adding controllers functionality to