added require to pages