added checks to verify component in edit mode