fix firefox and improve detail popup