Decouple UI construction from event handling logic. Add customizable marking colour for circles