added better functionality to circle open/close animation