Properties enabled and visible are not working as expected.