added function to switch buffer by name