fixed minor bugs in dialog and ui-router/nested-views examples