Dialogs improvements. Fixed typos and errors, which occured due to spec_helper.rb fail