Working on the main view