Updated refresh to 3 seconds and using jquery for open/close buttons