extract main view to its own method