Can actually add new to do item

- Moved the stringisNilOrEmpty func to GlobalData
- Made some optimizations