main page close button + refresh every 5 sec