add loading message behavior