updated bgm-hrm with dialog box