add selected modifier after tab click