background processes fixed and dialog box has been added