add zoom to extent plugin, fix a few issues with the context menu code