adds a function to show the list of todo task
fixes empty todotasks