toggling and colour setting.