fix bugs & add some features on advanced tab