Dialog is completed. Though it's very ugly!