add flash and remove index page