fixes for firefox and IE