Edit mode button fix