using scope variable, updating it on modal show