if i press 1 than my f1() fuction should be called if i press 2 than my close button click event should e fired ...