Added alert code and fixed text color