Ajax working for staff dashboard. Add spinner later