add a function to attach or create a new tmux session