Call function in another frame/dialog