porting textview sample / new ecode / some fixes