added control frame and dialog frame