Added save and undo buttons
Added IDs
Fixed syntax error