work in progress version of the main view