add message sidebar directive