Updated Refresh Logic on JSP