Added JOSM modal button logic

Callbacks are getting a bit much.