ui: encapsulated main form, looks much cleaner now :)