Create ViewContainer object to encapsulate view swapping