updated setInterval timer and edited html