Fixed performance problem cause by push buttons
Cursor.c and Cursor.h added