Move edit into common and create localstorage in common