Arduino Mega + esp8266 (on board)

So i just finished making my 3d printer and just couldnt figure out how do i make my on board esp8266 commuinicate with atmeg2560 so that i can wirelessly 3d print stuff.
i am very new to arduino.
image

how do i make the esp8266 work!?

Looks like you need to change the control panel.