removed edit button if edit is not defined