Added processing dialogs and fixed bugs