adding display toggle event litener outside google error handling