Add time difference functions

1. Implement "delete" widget funtions