Added if to actionperform to delete button