fix crash; horizontal layout fix
confirm on quit