added flash to index page