Modified the query to querySelector and started work in the new rectangle tool