add treasure edit and delete functionality