added button and functionality

draw shape preview not working right