create 'selected' state for search box and mobile links