Switch to any page

In my first app i have principal page and another page where i setting one parameter.

And i have these module:

InputView.mc

InputDelegate.mc

InputApp.mc

DefaultPropertiesView.mc

the app start on InputView and when i click on Menu button i go inside DefaultPropertiesView in this way:

if (evt.getKey() == WatchUi.KEY_ENTER) {
WatchUi.switchToView(new DefaultPropertiesView(), new DefaultPropertiesViewDelegate(), WatchUi.SLIDE_LEFT);
return true;
}

this from InputDelegate.

When i'm in DefaultPropertiesView i set one value and after i want return to InputView clicking on ESC button:


if (evt.getKey() == WatchUi.KEY_ESC) {
WatchUi.switchToView(new InputView(), new InputDelegate(), WatchUi.SLIDE_LEFT);
return true;
}

the app return to InputView but is freezed on simulator. And the simulator not works...

I think I did something wrong...