changed darwinapp to pageapp