integrating receiving and showing media from server