Made the widgets dynamic, so the colours change with the pill