edit button visibility bug fixed