render main view