autoselect top option on close