THe dialog added for test with window's height and alignment, also refacoring completed.