Modified the web application for enhancing the editing of the added activity as when it is saved, a new activity is added and the existing activity is not edited, the cause of the bugs is there is no id for the said editing thus the web application threat it as a new activity. Fixed this and tested the changes, as per testing, it is now OK.