added refresh function, so when using the load event, you can also refresh the values