Some fixes and rename flashmessage model class.
Some fixes and rename flashmessage model class.