Fixed admin sidebar
Fixed and improved functions.js