Add flashmessages to detailAction