added listing page functions to template