1. fix the visiblity of delete button on detail page when add a new record