my apology for replying this late. There was just a lot going on at work. Migrating courses from 2.9 to 3.6 was a nightmare all manual.
Anyways I am back and I just got moodle 3.10 installed on my own server as it was recommended that I do this on the latest version.
The thing is I am a designer by profession. So I look at design first then, programing to accommodate that.
I would love to share the codes. Please give me a few days. It has been a year since I lost looked at it.