sort out all the selected/highlighted background and behaviour