fixed important bug where many click handlers were added each time. replaced with unbind and bind