factory fix links and styles