added view functionality and compatibility with list