Adding onDashboardReplacemetnt event