handle mode and render circles