create Alert component, use for Chapter error