fix the cat/index view.
Add edit link and page to categories/index and functionality in controll