Clean up all the debug and useless code
Fix old content not animated sometimes bug

After regular view render, the old content did not
have position: relative, without which the element can
not be moved.
Add onRender function to service tree