updated version of selector component (reacts to window size changes)