fix firefox bugs and change titles markup