Two corrections

I detected two minor bugs in the app framework, I'm not sure about the $ui. showBackButton issue or what is the desired behavior, please review it and take into account