popup implemtation and Message imports