rationalised code in colours view. more fixes.