code for receiving and transmitting display requests