Fix small bug regarding migration. Disalow launching the command if VM is not defined, and enable the controls according to the permissions