Add the refresh feature

Please try it on device, checking if the result is matching our goal,
thx. Found the solution with Leo Tsai yesterday night.