fixing consistencies between firefox and chrome