selecting a graphical element