added global header file updated. moved rotation events to eventListener