added pages and posts controllers and created views