perf improvements, fixed raf.
fixed debind bug, removed redundant textbox code