removed global references to ui elements
moved event handlers
removed google global