add events to the moving graph to act as a button