Added save route on server and alert message on front end