move popup menu to code