Fixed NullPointer with empty-handed right-click.
Modified & upgraded relations commands.
Fixed some relations handlers.