adding controllers and views functionality