Update FlashMessages.php

some changes