Activity to view a task added. Some parts of the code refactored.