refresh function do not page reload