fixed css
message is built before saving to session (fixes #1)