Moved view stuff to ClientMain