fix bugs, make abstract draw tab