Added pages controller and index