fixed bugs with timing, recognizing clicks. menu now uses checkboxes.