fixed duplicated flash messages in default layout