will paramertize this so any type of messaging dialog or independent widget can fit here.