Implemented TitleBar to dialog