added basic functionality to save in edit bar