fixed path bug & added search dialog