Make form context menu conditional; further work on form