add messages form directive