completed the estimates button function