modified profile result flash function