refactor round functionality in controller and view