made a javascript handler for the out-of-network/in-network buttons