adding GTM controller logic