adding decorator for pages