Working on MenuBar and submitDialog has to be changed