* Cleared up the code a little bit

+ When you click an element, the GUI is closed (doesn't work for some reason)