Implemented dynamic assignment of colours to QRS buttons and markers