Added view functionality