added endSession() call to UI-s, right now doesn't work