My new button is in the wrong place

I figured it out, it was a pretty simple oversight actually. I forgot the the number after the add or remove action represents priority and by putting the same priority I was messing things up. So i just removed the priority to the remove add to cart action.

So my code now looks like this

add_action('woocommerce_single_product_summary','replace_add_to_cart');
function replace_add_to_cart() {
global $product;

    if ( ! $product->is_in_stock() ){
        remove_action( 'woocommerce_single_product_summary','woocommerce_template_single_add_to_cart');
        add_action( 'woocommerce_single_product_summary','consult_bezambar_expert', 30 );

function consult_bezambar_expert() {
global $product;

    echo '<form action="' . esc_url($product->get_permalink( "#tab- reviews" )) . '" method="get">
        <button type="submit" class="single_add_to_cart_button button alt">Consult Bez Ambar Expert</button>
        </form>';
        }
    }
}