Costomized draw button functionality

costomized the functionality for the drawing buttons