create pages displaying but not working