solved error in focusselect; minor changes