added option to disable the browse button