some view refactoring

updates to issue #3