added loading boolean to controller
closed missing div tag