Add pac file generator and fix ui