Fix code for refresh ressource page in dashboard. closes #4157