fixed <p class=bg-danger in a function