Split gui to separate file