updated element state to reflect default values