Made the alerted sidebar a function, so it can be changed easily