autoclose implemented + fixed random selection state