renamed gui element class
changed element main frame logic