changed access time to 8 hours
reformatted html to make it neater, changed location of 'if' statements