Fixed GUI, now functions correctly