added spinner
few changes
mouse and keyboard input working