modal open and close in separate file