added validation error signal
fixed layout problem
changed Dialog for MainWindow