Add selected class when widget opt is selected