It is probably a little bit late for this but I just came across this issue and there is a quite easy fix to that. Seperate your CLickGUI into 3 different Classes one for the Category one for the Modules and one For the settings and then render them accordingly because ur way of positioning elements makes 0 sense.