clean up code, use paging as much as possible for jquerymobile