change refreshPage method to not be final