some basic view functionality