updating index page for orientation change