Found bug and fixed it. Also made HTML more readable