updated routes, and flash alerts