Add function to DirParser, probably fixed button's offset on image
dialog, fixed id's related bug