adding logic to re-enable form