Lab/Main window: Moved most events into VM commands.