style and component for main view