adding final message when finishing the activity