add code and message labels