added global variale $current_todo to keep track