fix basic template show message bug
implement sell logic