added 2nd view functionality