Implement the main view