Updating deprecated element creation syntax