reverted to checking on display attribute of placeholder