Added javascript to change the colour of the catogory when selected.
Some other small changes.