adding transitions between the pages