fixed numerous slow scripts due to drawing buttons