Removed unused imports
Changed class properties to local variables since they're only used in initialize()
Added the form row for adding new hostnames and reorganized the code into different method calls so it doesn't turn into a giant one-method clusterfuck
Added a rigid block to line up the form with the fields below