adding dispatcher class, renderer now extends dispatcher