re-factored mainViewController to implement SessionContInterface