changed the way clickProcessing of menu works