added page renderer to render slides and main page