added functionality for news pages and editing