adding pagination calls on api