fixed bug; only bind listeners once.

moved the listeners outside of showSessions();