message now sets colours dynamicallY
added main page error handling