refactored views to use script-base
added base monogoose functionality