Improved GUI Script

now i won't have to add lines when i add a new element