init controllers and views