Communicate between main to modal