added JS for closing dialog (prevent clone on validation errors)
implemented companies CRUD