added click and mouseleave