complete : function to add and add and delete the rowns and column independent of the activty time