moved alerts to header, style fixes