creating controller and views