add view function for single task, not done yet.