created home page and pages controller