added REST endpoint to return lastaction so could show user flash msg and option to undo