added rectangle editing