To come back to your original question
@charon ...
What you probably must do is create an instance that you e.g. save in the ClickGui class. That way you dont have to initialize a new Gui that will load all modules etc. but rather have it loaded once.
You can create this instance by moving your code that should look sth. like this:
mc.displayScreen(new YourClickGuiClass())
to the init method of e.g. your ClickGui Module. Afterwards you open the instance (that you saved in a variable e.g. guiInstance) by:
mc.displayScreen(guiInstance)
Your final code in the ClickGui class should look sth. like this:
This hopefully prevents the lag that you experience by initializing your gui over and over again.
I am pretty sure that most of the people who answered in this thread know this as well and maybe decide to help in the future...
Hopefully this helps you (contact/tag me for further questions) and with kind regards,
Phantom