Small bug fixes

1. Delete button doesn't work.
2. Clear completed button does the opposite.
3. Show footer only if no todo item exists (regardless of categories).