material: UI change; code refine;
attend: correct attend dialog display;