moving pageList stuff to angular module
getting sleepy