added directive for error boxes