first try for delete and update button to mongodb