made right click menu with funcionality of deselecting and changing
properties of the selection plus fix some minor bugs