closed #19, view functionality is implemented