fix browse button behavior