Empty content first to prevent loading flicker when moving between actions.