implemented refresh timer, and fixed reload bug after connection dropped