added message for view and message in background samples