added processing modal but not sure if it works the intended way