refactored timeline and conversation

* changed variable into inline
* removed variable no longer use
* extract function from long one function