todo made in main view