enable download errorlog in history tab and fix bugs