refactor: embed onclicklistener code into sessionView to make it more portable