Fixed manual refresh problem.
Implemented auto refresh