refactored appMain view swticher

Signed-off-by: alkaest2002 <p.calanna@gmail.com>
simplified bbo's templateHelpers

Signed-off-by: alkaest2002 <p.calanna@gmail.com>