clear empty inputs from commands when saving
add save and undo button functionality
add fixes
remove sync from window scope
add undo button