fixes for FF and IE