modified selection box behaviour