Add view functionality