fixed bug with gear id
updated models, added auto-pagination