fix hiding edit button