moved GA out of controllers and into js callbacks