correcting colour and updating page class