changed routes for ajax from post to put