update code for spot page