move most file in app out for page