add custom routes and updated flash alerts