Removed gui handler registering (for now)
Removed some weird code