more  edits to ellipse and state style resetting