added select button implementation