isInEditMode() checking added