add a rectangle line around the area where mouse is pressed