MainFrame recognizes drawn Element