context menu code transfered from view to scene