added basic mvc functions