Fixing flash messages and providing hint on search