allow action before messages are displayed