Fixes issue #49 for modal execution from non screen pages