search and sort and flash messageses added