global refresh function so we dont overload with refresh events