Change Valid Checks/ add show Dialog

Add show Dialog Function to lock the Parent window
change valid checks
(Thomas)