finishes edit and destroy on categories controler and views