updated code & design gui