Added marking-rectangle and added collision check between mouse and panels