Add support for list function

Added a method called view_with_list which behaves very much like
view but with an extra parameter for the list name.