Got modal partial working with local variables