fixed issue with pagination using angular UI bootstrap