postMessage used in both controllers