moved pager over to admin.js and fix a bug in amount changing