zhangxv refactor some code in admin.js and admin.erb