bug fixes for index page