edit view upcoming activities code due to errors