Made display of the merge button be selective