added authorization to pages