Added automatic http refresh