set modal click functionality