ui struct and message