Major code clean up fix for the no entry in the reports section sorted finally

Better Moodle integration nav bar appears etc.