move some adminLTE.js code into application view