fixed detroy, update and create buttons