message views refactory