added basic view functionality