Refactor heartbeat

* move creating of method call to model
* rename selectedBuffer to selectedBufferId