fleshed out the entire view dialog.