Molecular simulations of protein binding and switching