I have 2 blocks on canvas master and detail

When i move to another record in master block records
in detail block are changing

I want user to know on what master record i stay,
when i go to detail block

I made a visual attribute which colouring master record in yellow and i make it by setting master block property in post-query trigger

I want that this yellow light should stay in this record after leaving and entering canvas.