*working pagination, splitted into modules
*now utilizing angular-ui pagination-it is better for cases, when we have lots of pages