onappend bug fixed. last step of creating widget works well.