refactoring; adjusting styling on alert messages borders