Added a checkbox for auto refresh functionality