building the main views