refactored internal view management and wired up page save event