added right click menu for placing patterns