fixed edit button visibility