Change the way of page refresh to ajax.