modal window now executable by javascript command
merge with the dirty hacks we did the last friday..