Modal work & close on edit block