Made course items work properly with the backend

* Various style updates
* Ajax changes and various other small updates so that it works properly