changed controller and views to have public folders