added firefox dialogue hook