use a QtQuickControl's StackView to replace all the ugly code in Controller, and get back the view logic in the view