enabled shape selection, updated active shape logic & document listener