Finally working gui... somewhat