Added a lot of interactivity for test and category edit