implimeented update and destroy actions