again trying to make the form close- this time it works!