Modified the delete expenses function to update the summary details