edit button now toggles edit modes