refactoring of appearance and placement of ui edit button