Changing button to a element fixed the delete on enter problem