support key edit, display edit button if allowed to edit