change contextual menu and add live preview mode