update view amount logic