Change page transition when sidebar is clicked